package com.cqq.common.core.protocol.http;

import com.cqq.common.core.protocol.Protocol;
import com.cqq.common.core.protocol.RequestBean;
import com.cqq.common.core.protocol.http.HttpMethod;

public class HttpRequestBean extends RequestBean {

	private HttpMethod method;

	private String sessionID;
	
	private boolean isAjax=false;
	
	private boolean enableSSL=false;
	
	private boolean clientAuth=false;
	
	private boolean encode=true;
	
	private String encoding="UTF-8";
	
	public HttpRequestBean(){
		super.setProtocol(Protocol.HTTP);
		this.method=HttpMethod.POST;
	}
	
	public HttpMethod getMethod() {
		return method;
	}

	public void setMethod(HttpMethod method) {
		this.method = method;
	}

	public String getSessionID() {
		return sessionID;
	}

	public void setSessionID(String sessionID) {
		this.sessionID = sessionID;
	}

	public boolean isAjax() {
		return isAjax;
	}

	public void setAjax(boolean isAjax) {
		this.isAjax = isAjax;
	}

	public boolean isEnableSSL() {
		return enableSSL;
	}

	public void setEnableSSL(boolean enableSSL) {
		this.enableSSL = enableSSL;
	}

	public boolean isClientAuth() {
		return clientAuth;
	}

	public void setClientAuth(boolean clientAuth) {
		this.clientAuth = clientAuth;
	}

	public String getEncoding() {
		return encoding;
	}

	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}

	public boolean isEncode() {
		return encode;
	}

	public void setEncode(boolean encode) {
		this.encode = encode;
	}

}
